package qldc.pm.tienan.searchcontainer;

import java.text.SimpleDateFormat;
import java.util.Date;

import javax.portlet.PortletRequest;

import qldc.pm.tienan.constants.TienAnConstants;

import com.liferay.portal.kernel.dao.search.DisplayTerms;
import com.liferay.portal.kernel.util.ParamUtil;

public class YeuCauTrichLucDisplayTerms extends DisplayTerms {
	public static final String HO_VA_TEN_NGUOI_YEU_CAU_TRICH_LUC = "hoVaTenNguoiYeuCauTrichLuc";
	public static final String CO_QUAN_NGUOI_YEU_CAU_TRICH_LUC = "coQuanNguoiYeuCauTrichLuc";
	public static final String SO_CMND_DOI_TUONG_TRICH_LUC = "soCMNDDoiTuongTrichLuc";
	public static final String HO_VA_TEN_DOI_TUONG_TRICH_LUC = "hoVaTenDoiTuongTrichLuc";
	public static final String SO_DINH_DANH_CA_NHAN_DOI_TUONG_TRICH_LUC = "soDinhDanhCaNhanDoiTuongTrichLuc";
	public static final String SO_SO_HO_KHAU_DOI_TUONG_TRICH_LUC = "soSoHoKhauDoiTuongTrichLuc";
	public static final String TRANG_THAI_TRICH_LUC = "trangThaiTrichLuc";
	public static final String TU_NGAY_TAO_TRICH_LUC = "tuNgayTaoTrichLuc";
	public static final String DEN_NGAY_TAO_TRICH_LUC = "denNgayTaoTrichLuc";
	
	public static final String TINH_ID = "tinhId";
	public static final String QUAN_HUYEN_ID = "quanHuyenId";
	public static final String PHUONG_XA_ID = "phuongXaId";
	public static final String NGUOI_TAO_TRICH_LUC = "nguoiTaoTricLuc";

	protected String hoVaTenNguoiYeuCauTrichLuc;
	protected String coQuanNguoiYeuCauTrichLuc;
	protected String soCMNDDoiTuongTrichLuc;
	protected String hoVaTenDoiTuongTrichLuc;
	protected String soDinhDanhCaNhanDoiTuongTrichLuc;
	protected String soSoHoKhauDoiTuongTrichLuc;
	protected Date tuNgayTaoTrichLuc;
	protected Date denNgayTaoTrichLuc;
	protected int trangThaiTrichLuc;
	
	protected long tinhId;
	protected long quanHuyenId;
	protected long phuongXaId;
	protected String nguoiTaoTrichLuc;

	public YeuCauTrichLucDisplayTerms(PortletRequest portletRequest) {
		super(portletRequest);
		SimpleDateFormat format = new SimpleDateFormat(TienAnConstants.DATE_PATTERN);
		hoVaTenNguoiYeuCauTrichLuc = ParamUtil.getString(portletRequest, HO_VA_TEN_NGUOI_YEU_CAU_TRICH_LUC);
		coQuanNguoiYeuCauTrichLuc = ParamUtil.getString(portletRequest, CO_QUAN_NGUOI_YEU_CAU_TRICH_LUC);
		soCMNDDoiTuongTrichLuc = ParamUtil.getString(portletRequest, SO_CMND_DOI_TUONG_TRICH_LUC);
		hoVaTenDoiTuongTrichLuc = ParamUtil.getString(portletRequest, HO_VA_TEN_DOI_TUONG_TRICH_LUC);
		soDinhDanhCaNhanDoiTuongTrichLuc = ParamUtil.getString(portletRequest, SO_DINH_DANH_CA_NHAN_DOI_TUONG_TRICH_LUC);
		soSoHoKhauDoiTuongTrichLuc = ParamUtil.getString(portletRequest, SO_SO_HO_KHAU_DOI_TUONG_TRICH_LUC);
		trangThaiTrichLuc = ParamUtil.getInteger(portletRequest, TRANG_THAI_TRICH_LUC);
		tuNgayTaoTrichLuc = ParamUtil.getDate(portletRequest, TU_NGAY_TAO_TRICH_LUC, format, null);
		denNgayTaoTrichLuc = ParamUtil.getDate(portletRequest, DEN_NGAY_TAO_TRICH_LUC, format, null);
		nguoiTaoTrichLuc = ParamUtil.getString(portletRequest, NGUOI_TAO_TRICH_LUC);
		
		tinhId = ParamUtil.getLong(portletRequest, TINH_ID);
		quanHuyenId = ParamUtil.getLong(portletRequest, QUAN_HUYEN_ID);
		phuongXaId = ParamUtil.getLong(portletRequest, PHUONG_XA_ID);


	}
	

	public long getTinhId() {
		return tinhId;
	}


	public void setTinhId(long tinhId) {
		this.tinhId = tinhId;
	}


	public long getQuanHuyenId() {
		return quanHuyenId;
	}


	public void setQuanHuyenId(long quanHuyenId) {
		this.quanHuyenId = quanHuyenId;
	}


	public long getPhuongXaId() {
		return phuongXaId;
	}


	public void setPhuongXaId(long phuongXaId) {
		this.phuongXaId = phuongXaId;
	}


	public String getNguoiTaoTrichLuc() {
		return nguoiTaoTrichLuc;
	}


	public void setNguoiTaoTrichLuc(String nguoiTaoTrichLuc) {
		this.nguoiTaoTrichLuc = nguoiTaoTrichLuc;
	}


	public Date getTuNgayTaoTrichLuc() {
		return tuNgayTaoTrichLuc;
	}


	public void setTuNgayTaoTrichLuc(Date tuNgayTaoTrichLuc) {
		this.tuNgayTaoTrichLuc = tuNgayTaoTrichLuc;
	}


	public Date getDenNgayTaoTrichLuc() {
		return denNgayTaoTrichLuc;
	}


	public void setDenNgayTaoTrichLuc(Date denNgayTaoTrichLuc) {
		this.denNgayTaoTrichLuc = denNgayTaoTrichLuc;
	}


	public int getTrangThaiTrichLuc() {
		return trangThaiTrichLuc;
	}


	public void setTrangThaiTrichLuc(int trangThaiTrichLuc) {
		this.trangThaiTrichLuc = trangThaiTrichLuc;
	}


	public String getHoVaTenNguoiYeuCauTrichLuc() {
		return hoVaTenNguoiYeuCauTrichLuc;
	}

	public void setHoVaTenNguoiYeuCauTrichLuc(String hoVaTenNguoiYeuCauTrichLuc) {
		this.hoVaTenNguoiYeuCauTrichLuc = hoVaTenNguoiYeuCauTrichLuc;
	}

	public String getCoQuanNguoiYeuCauTrichLuc() {
		return coQuanNguoiYeuCauTrichLuc;
	}

	public void setCoQuanNguoiYeuCauTrichLuc(String coQuanNguoiYeuCauTrichLuc) {
		this.coQuanNguoiYeuCauTrichLuc = coQuanNguoiYeuCauTrichLuc;
	}

	public String getSoCMNDDoiTuongTrichLuc() {
		return soCMNDDoiTuongTrichLuc;
	}

	public void setSoCMNDDoiTuongTrichLuc(String soCMNDDoiTuongTrichLuc) {
		this.soCMNDDoiTuongTrichLuc = soCMNDDoiTuongTrichLuc;
	}

	public String getHoVaTenDoiTuongTrichLuc() {
		return hoVaTenDoiTuongTrichLuc;
	}

	public void setHoVaTenDoiTuongTrichLuc(String hoVaTenDoiTuongTrichLuc) {
		this.hoVaTenDoiTuongTrichLuc = hoVaTenDoiTuongTrichLuc;
	}

	public String getSoDinhDanhCaNhanDoiTuongTrichLuc() {
		return soDinhDanhCaNhanDoiTuongTrichLuc;
	}

	public void setSoDinhDanhCaNhanDoiTuongTrichLuc(
			String soDinhDanhCaNhanDoiTuongTrichLuc) {
		this.soDinhDanhCaNhanDoiTuongTrichLuc = soDinhDanhCaNhanDoiTuongTrichLuc;
	}

	public String getSoSoHoKhauDoiTuongTrichLuc() {
		return soSoHoKhauDoiTuongTrichLuc;
	}

	public void setSoSoHoKhauDoiTuongTrichLuc(String soSoHoKhauDoiTuongTrichLuc) {
		this.soSoHoKhauDoiTuongTrichLuc = soSoHoKhauDoiTuongTrichLuc;
	}

}
